package com.wxlgroup.springboot.service;
import com.wxlgroup.springboot.commons.Response;
import com.wxlgroup.springboot.entity.User;
import java.util.List;
/**
 * @auther:wxl
 * @Date:2022/5/20-05-20-19:10
 * @Description:com.wxlgroup.springboot.service
 * @Version:1.0
 */
public interface UserService {

    //查询所有用户
    public Response queryAll();

    //插入一个新用户或者更新一个用户
    public Response save(User user);

    //删除某个用户
    public Response deleteUserById(Integer id);

    //根据id查询某一个用户
    public Response queryUserById(Integer id);

    //批量删除用户
    public Response deleteUsers(List<Integer> ids);

    //查询用户的总条数
    public Integer findUserCounts(String username,String email,String address);

    //分页查询数据
    public Response findUsersByPage(Integer pageNumber, Integer PageSize,String username,String email,String address);


    //将用户数据导出
    public List<User> exportUsers();

    //根据用户名和密码查询相应的用户
    public Response findUserByUsername(String username);
}
